/**
 * Created with Vim7.3 ubuntu12.04
 * @fileOverview : 
 * @author : Lyle <lylechen2014@gmial.com>
 * @since : 2014-08-21 15:30:53
 * @filename : static/mnm/src/views/termsService.js
 * @version : 
 * @description : 
 */

define(function(require, exports, module){

        require("{resourceUrl}css/mnm/public.css");

        var termsServiceView,
            $ = require('$'),
            _ = require('underscore'),
	    Backbone = require('backbone'),
            lang = require('{baseSea}I18N/mnm/{locale}'),
            tpl = require('{resourceUrl}tpl/mnm/termsService.tpl');
	
        termsServiceView = Backbone.View.extend({

		el: 'body',

		template: _.template(tpl),
                /*
		events: {
                    "tap .back"       : "goBack",   	        
                },
                */

                bindEvt : function() {
                    var dom = $('#termsService'),tthis = this;
                        dom.find('.back').tap(function(){
                            tthis.goBack();
                        }); 
                },

		initialize: function () {
                
                },

		render: function (obj) {
                    if ($('#termsService_box').length < 1) { 
                        $('body').append(this.template(lang)); 
                        this.bindEvt(); 
                    } else {
		        $('#termsService_box').show();
                    }
                },

                goBack : function() {
                     window.location.href = '#joinus/whole'; 
                }
	});

	module.exports = termsServiceView;
})

